#include <linux/init.h>
#include <linux/module.h>

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Z");

char* exit_message = "Bye";
char* username = "me";

MODULE_PARM_DESC(exit_message,"message to print when exit");
MODULE_PARM_DESC(user,"username to print when exit");

static int z_init(void)
{
	printk("z_init \n");
    printk("username: %s, exit_message: %s\n", username, exit_message);
	return 0;
}
static void z_exit(void)
{
    printk("To %s: %s\n", username, exit_message);
	return;
}

module_param(exit_message, charp, 0644);
module_param_named(user, username, charp, 0644);

module_init(z_init);
module_exit(z_exit);
